import React, { useEffect } from 'react'

//axios请求
import axios from "axios"

export default function App() {

  //刚加载就要发请求
  useEffect(()=>{
    axios.get("/api1/user")
  },[])
  return (
    <div>App</div>
  )
}
